package com.zxm.edu.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotBlank;

/**
 * 课程
 *
 * @author silencezheng
 * @date 2022/07/29
 * @since 2022-05-18
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "课程")
public class CourseVO {

    /**
     * id
     */
    @ApiModelProperty(name = "id", value = "课程id", dataType = "Integer")
    private Integer id;

    /**
     * 课程分类
     */
    @ApiModelProperty(name = "category", value = "资讯分类", dataType = "Integer")
    private String categoryName;

    /**
     * 课程缩略图
     */
    @ApiModelProperty(name = "courseCover", value = "课程缩略图", dataType = "String")
    private String courseCover;

    /**
     * 课程名
     */
    @NotBlank(message = "名字不能为空")
    @ApiModelProperty(name = "name", value = "课程名", required = true, dataType = "String")
    private String name;

    /**
     * 课程简介
     */
    @ApiModelProperty(name = "content", value = "课程简介", dataType = "String")
    private String content;
    /**
     * 链接
     */
    @NotBlank(message = "课程链接不能为空")
    @ApiModelProperty(name = "url", value = "课程链接", required = true, dataType = "String")
    private String url;

    @ApiModelProperty(name = "isFree", value = "是否免费", dataType = "String")
    private String isFree;
    @ApiModelProperty(name = "isTop", value = "是否推荐", dataType = "String")
    private String isTop;
    @ApiModelProperty(name = "money", value = "金额", dataType = "String")
    private String money;
}
